//
//  BKGDEvaluationNormalCell.h
//  BESTKEEP
//
//  Created by 武探 on 2016/10/10.
//  Copyright © 2016年 YISHANG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BKGDCommon.h"

@class BKGDEvaluationNormalCell;

@protocol BKGDEvaluationNormalCellDelegate <NSObject>

@required
/**
 点赞
 */
-(void)evaluationNormalCellPraiseAtCell:(BKGDEvaluationNormalCell*)cell isVote:(BOOL)isVote;

@end

/**
 评价cell
 */
@interface BKGDEvaluationNormalCell : UITableViewCell

@property(nonatomic,weak) id<BKGDEvaluationNormalCellDelegate> delegate;

-(void)fillData:(BKGDEvaluationObject*)evaluation;

/**
 根据点坐标计算imageItem相对屏幕的rect，图片 索引  point(相对于cell的point)
 */
-(void)imageItemRect:(CGRect*)rect image:(UIImage*__autoreleasing *)image index:(NSInteger*)index atPoint:(CGPoint)point;

/**
 显示图片浏览器 无动画
 */
-(void)showImageWithIndex:(NSInteger)index;

+(CGFloat)computeHeight:(BKGDEvaluationObject*)evaluation;

@end
